/*            Copyright(c) 2006-2008 Dave Sexton           *
 * http://www.codeplex.com/DocProject                      *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;

namespace DaveSexton.DocProject.Wizards.Foundation
{
	/// <summary>
	/// Provides an exception argument for an event.
	/// </summary>
	[Serializable]
	public class ExceptionEventArgs : EventArgs
	{
		#region Public Properties
		public Exception Exception { get { return exception; } }
		#endregion

		#region Private / Protected
		private readonly Exception exception;
		#endregion

		#region Constructors
		/// <summary>
		/// Constructs a new instance of the <see cref="ExceptionEventArgs" /> class.
		/// </summary>
		public ExceptionEventArgs(Exception exception)
		{
			if (exception == null)
				throw new ArgumentNullException("exception");

			this.exception = exception;
		}
		#endregion
	}
}
